package com.zb.constant;

/**
 * redis常量
 * @Author WEN
 * @Date 2023/7/28 0028
 **/
public interface RedisConstant {
    /**
     * 系统内部redis缓存前缀
     */
    String REDIS_PREFIX = "zb-dingdong";

    /**
     * 默认4个小时过期
     */
    Long DEFAULT_EXPIRE_TIME = 14400L;

    /**
     * 商家代码
     */
    String ENTERPRISE_CODE = REDIS_PREFIX + ":enterprise_code:";

    /**
     * 服务商代码
     */
    String ENTERPRISE_NETWORK_CODE = REDIS_PREFIX + ":enterprise_network_code:";

    /**
     * 服务商邀请码
     */
    String NETWORK_INVITE_CODE = REDIS_PREFIX + ":network_invite_code:";

    /**
     * 财务模块前缀
     */
    String FINANCE_PREFIX = REDIS_PREFIX + ":finance:";

    /**
     * 提现工单
     */
    String FINANCE_WITHDRAW_WORK_NO = FINANCE_PREFIX + "withdraw-work-no:";


    /**
     * 服务商邀请码过期时间：默认七天，单位：秒
     */
    long NETWORK_INVITE_CODE_EXPIRE_TIME = 604800L;
}
